package org.rcloud.io.mapper;

import org.apache.ibatis.annotations.Param;
import org.rcloud.io.Utils.EndorsementVo;
import org.rcloud.io.model.Endorsement;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface EndorsementMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Endorsement record);

    int insertSelective(Endorsement record);

    Endorsement selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Endorsement record);

    int updateByPrimaryKey(Endorsement record);

    List<Endorsement> selectAll();

    Endorsement selectByNum(String eid);

    List<Endorsement> selectByOther(Map record);

    int updateByTitle(@Param("nametitle") String nametitle, @Param("shouming")String shouming);

    List<Endorsement> selectDQ();

    List<Endorsement> selectWS();

    List<Endorsement> selectXD();

    List<Endorsement> selectXK();

    List<Endorsement> selectByEtype(String etype);

    List<Endorsement> selectByName(String name);

    List<Endorsement> selectByValue(String params);

    Endorsement selectByendorsementid(String params);

    List<Endorsement> selectByOthers(Map map);

    List<EndorsementVo> selectByCondition(Endorsement endorsement);

//List<Endorsement> selectByendorsementid(String record);

    void cancelShow();

    int addShow(Endorsement endorsement);

    List<Endorsement> random();
}